<template>
	<view class="all">
		<view class="top">
			<view class="top_title"> {{item.title}} </view>
			<view class="top_money" v-if="item.is == 1"> - <text style="color: blue;">{{item.money}}</text>  </view>
			<view class="top_money" v-if="item.is == 2"> + <text style="color: #ff0000;">{{item.money}}</text>  </view>
		</view>
		<view class="box">
			<view class="box_text">账户</view>
			<view class="box_text">{{account_data}}</view>
		</view>
		<view class="box">
			<view class="box_text">余额</view>
			<view class="box_text">{{item.sum}}</view>
		</view>
		<view v-if="item.type == 1 || item.type == 3">
			<view class="box" v-if="item.status == 0">
				<view class="box_text">状态</view>
				<view class="box_text">待审核</view>
			</view>
			<view class="box" v-if="item.status == 1">
				<view class="box_text">状态</view>
				<view class="box_text">失败</view>
			</view>
			<view class="box" v-if="item.status == 2">
				<view class="box_text">状态</view>
				<view class="box_text">成功</view>
			</view>
		</view>
		
		<view class="box">
			<view class="box_text">创建时间</view>
			<view class="box_text">{{item.addtime}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				item:{},
				account_data:''
			}
		},
		onLoad(num) {
			this.item = JSON.parse(num.item)
			this.account_data = num.account_data
		},
		methods: {
			
		}
	}
</script>

<style lang="less">
	page{
		.all{
			.box{
				.box_text{
					font-size: 28upx;
				}
				display: flex;
				justify-content: space-between;
				padding: 20upx;
				width: 710upx;
			}
			.top{
				.top_money{
					text-align: center;
					font-size: 32upx;
					color: #ff0000;
				}
				.top_title{
					font-size: 28upx;
					text-align: center;
				}
				width: 750upx;
				padding: 40upx 0;
				text-align: center;
			}
		}
	}
</style>
